package zuoye3;

public class MainApp {
    public static void main(String[] args) {
        try {
            Student student = new Student("张三", 18, "男", 2019001, 90, 80, 70);
            System.out.println("平均成绩为：" + student.getAverageScore());
            System.out.println("最高成绩为：" + student.getMaxScore());
            System.out.println("最低成绩为：" + student.getMinScore());
            System.out.println(student);
        } catch (Exception e) {
            System.err.println("发生错误：" + e.getMessage());
        }
    }
}
  